import { BasicColumn } from '/@/components/Table'

export const Columns: BasicColumn[] = [
    {
        title: '评论编号',
        dataIndex: '_id',
    },
    {
        title: '评论人',
        dataIndex: 'uid',
        slots: { customRender: 'uid' },
    },
    {
        title: '评论对象',
        dataIndex: 'object',
        slots: { customRender: 'object' },
    },
    {
        title: '评论内容',
        dataIndex: 'content',
    },
    {
        title: '评论时间',
        dataIndex: 'createdAt',
        slots: { customRender: 'createdAt' },
    },

    {
        title: '评论级别',
        dataIndex: 'parentId',
        slots: { customRender: 'parentId' },
    },
]

export const FormConfig = {
    labelWidth: 100,
    schemas: [
        {
            field: '_id',
            label: '评论编号:',
            component: 'Input',
            componentProps: {
                placeholder: '请输入评论编号',
            },
            colProps: {
                xl: 8,
                xxl: 6,
            },
        },
    ],
}
